package com.example;

class Solution {
    public static void main(String[] args) {
        int a = 1, b = 2;
        swap(a, b);
        System.out.println(a);
        System.out.println(b);
    }

    private static void swap(int a, int b) {
        int tmp = a;
        a = b;
        b = tmp;
    }
}